package demo1;

public class Main {
    public static void main(String[] args) {
        //电脑 适配器 网线
        Computer computer = new Computer();
        Adaptee adaptee = new Adaptee();
        Adapter adapter = new Adapter();

        computer.net(adapter);

        Adapter2 adapter2 = new Adapter2(adaptee);
        Computer computer1 = new Computer();
        computer1.net(adapter2);

    }
}